package com.example.web.service;

import com.example.xo.pojo.Category;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author 王同学
 */
@Transactional
public interface CategoryService {
    //增删改查
     boolean add(Category category);
     boolean deleteById(String id);
     boolean update(Category category);
     List<Category> findAll();
     Category findById(String id);
     //这边再写一个判断名字
     Category findByName(String name);

}
